/* 全局样式重置和基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-family: 'Arial', 'Microsoft YaHei', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  
  /* 太空主题色彩变量 */
  --space-dark: #0c0c0c;
  --space-blue: #1a1a2e;
  --space-purple: #16213e;
  --star-gold: #ffd700;
  --star-yellow: #ffed4e;
  --text-primary: rgba(255, 255, 255, 0.9);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* 动画和过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--space-dark) 0%, var(--space-blue) 50%, var(--space-purple) 100%);
  color: var(--text-primary);
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 按钮基础样式 */
button {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

button:hover {
  border-color: var(--star-gold);
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 链接样式 */
a {
  color: var(--star-yellow);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--star-gold);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  button {
    padding: 0.8em 1.5em;
    font-size: 1.1em;
  }
}